package com.example.srm.auth.service;

import com.example.srm.domain.TRole;
import com.example.srm.domain.TUserRole;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 *
 */
public interface TUserRoleService extends IService<TUserRole> {
    /**
     * 根据用户id查询角色集合
     * @param id
     * @return
     */
    List<TRole> getRolesByUserId(String id);

    boolean BatchSave(String id, List<String> roleIDList);

}
